import type { App } from 'vue'
import debounce from './modules/debounce'
import throttle from './modules/throttle'
import permission from './modules/permission'
import copy from './modules/copy'
import thousandSeparator from './modules/thousandSeparator'
// import scrollauto from './modules/scrollauto'
const directivesList: any = {
  debounce,
  throttle,
  permission,
  copy,
  thousandSeparator,
  // scrollauto
}
 
const directives = {
  install(app: App<Element>) {
    Object.keys(directivesList).forEach((key) => {
      app.directive(key, directivesList[key])
    })
  },
}
 
export default directives